import axios from "@/axios_env/interceptors";

export default class UserApi{
    static login(loginModule){
        return axios.post("/api/login",loginModule);
        
    }
    static validateToken(){
        return axios.get("/api/validateToken");
    }

    static getVpnUserByToken(token){
        return axios.get(`/api/getVpnUserByToken?token=${token}`);
    }

    static register(registerModule){
        return axios.post("/api/register",registerModule);
        
    }

    //获取套餐列表
    static getPlanList(){
        return axios.get("/api/palnList");
 
    }
    //卡密充值
    static rechargeCarmi(Carmi){
        return axios.post("/api/rechargeCarmi",Carmi);
 
    }
    
}